package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/2/1 14:14
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class SaleStageModifyLogEntity extends Entity {

    private static final long serialVersionUID = -4072461672405762961L;

    private Long id;
    private String corpid;
    private Long formId;
    private Long stageProcessId;
    private Long stageId;
    private Long stageWorkId;
    private Integer type;
    private Integer originalValue;
    private Integer currentValue;
    private Long addTime;
    private Long updateTime;
    private Integer del;

    public SaleStageModifyLogEntity() {
    }

    public SaleStageModifyLogEntity(String corpid, Long formId, Long stageProcessId, Long stageId, Long stageWorkId, Integer type, Integer originalValue, Integer currentValue) {
        this.corpid = corpid;
        this.formId = formId;
        this.stageProcessId = stageProcessId;
        this.stageId = stageId;
        this.stageWorkId = stageWorkId;
        this.type = type;
        this.originalValue = originalValue;
        this.currentValue = currentValue;
        this.addTime = DateTimeUtil.getInt();
        this.updateTime = DateTimeUtil.getInt();
        this.del = 0;
    }
}
